﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>
<meta charset="utf-8" />
<title>大咖讲后台管理系统</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- 必须的css -->
<link href="<%=basePath %>bigshot/css/bootstrap.min.css" rel="stylesheet" />
<link href="<%=basePath %>bigshot/css/bootstrap-responsive.min.css" rel="stylesheet" />
<link rel="stylesheet" href="<%=basePath %>bigshot/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="/Public/Admin/<%=basePath %>bigshot/css/font-awesome-ie7.min.css" />
<![endif]-->
<link rel="stylesheet" href="<%=basePath %>bigshot/css/ace-fonts.css" />
<link rel="stylesheet" href="<%=basePath %>bigshot/css/jquery-ui-1.10.3.full.min.css" />
<link rel="stylesheet" href="<%=basePath %>bigshot/css/ace.min.css" />
<link rel="stylesheet" href="<%=basePath %>bigshot/css/ace-responsive.min.css" />
<link rel="stylesheet" href="<%=basePath %>bigshot/css/ace-skins.min.css" />
<!--[if lte IE 8]>
	<link rel="stylesheet" href="/Public/Admin/<%=basePath %>bigshot/css/ace-ie.min.css" />
<![endif]-->
<link rel="stylesheet" href="<%=basePath %>bigshot/css/bootstrap-timepicker.css" />
<link rel="stylesheet" href="<%=basePath %>bigshot/css/datepicker.css" />

<!-- lagou.alert -->
<link rel="stylesheet" href="<%=basePath %>bigshot/css/lagou.admin.css" />
<link rel="stylesheet" href="<%=basePath %>bigshot/css/lagou.global.css" />

<!-- webuploader -->
<link rel="stylesheet" type="text/css" href="<%=basePath %>bigshot/css/webuploader.css"/>
<link rel="stylesheet" type="text/css" href="<%=basePath %>bigshot/css/lxlin.css"/>
<link rel="stylesheet" type="text/css" href="<%=basePath %>bigshot/css/lq.datetimepick.css"/>
<!-- /必须的css -->

<script src="<%=basePath %>bigshot/js/time/time_jquery.js"></script>
<script src="<%=basePath %>bigshot/js/ace-extra.min.js"></script>
<script src="<%=basePath %>bigshot/js/lxlin.js"></script>
<script src='<%=basePath %>bigshot/js/jquery-form.js'></script>
<script type="text/javascript">

$(function(){
	$.ajax({
		url:'<%=basePath%>dictionary/lectureLabel.do',
		dataType:'json',
		type: "post",
		success:function(data){
			var html="";
			for(var i=0;i<data.data.length;i++){
				html += "<label><input id=\"2001\" name=\"label\" type=\"checkbox\" value=\"投资类\" onClick=\"check_count('xingge', this, 3)\">"+data.data[i]+"</label>";
			}
			$('#edit_xingge').html(html); 
		}
		
	});

	$.ajax({
		url:'<%=basePath%>dictionary/expertiseLabel.do',
		dataType:'json',
		type: "post",
		success:function(data){
			var html="";
			for(var i=0;i<data.data.length;i++){
				html += "<label><input id=\"1101\" name=\"label\" type=\"checkbox\" value=\"投资类\" onClick=\"check_count('xingge', this, 3)\">"+data.data[i]+"</label>";
			}
			$('#edit_xingge1').html(html); 
		}
		
	});
	
	
	
	stime();
	etime();

});
function stime(){
	var a=document.getElementById("datetimepicker1").value;
	var b=document.getElementById("datetimepicker2").value;
	var stime = document.getElementById("stime").value=a+" "+b;

	}
function etime(){
	var a=document.getElementById("datetimepicker3").value;
	var b=document.getElementById("datetimepicker4").value;
	var etime=document.getElementById("etime").value=a+" "+b;

	}
	
							</script>	
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.js"></script>
<script type="text/javascript">
//搜索大咖的点击事件	
 function search(tid) {
	var readonly=$('#dakaID').attr('readonly');//判断是否已经绑定大咖
	if(readonly==null ||readonly==""){//没有绑定 可以搜索
	    //非空校验
		if(tid==null || tid==""){
			//为空, 关闭 列表div
			document.getElementById('search').style.display = "none";
			alert("请先输入大咖的名字 !");
		}else{
			//不为空 
			//先清空div 
			 $("#searchTid").attr("value","");
	      	   $("#searchName").attr("value","");
	      	   $("#searchSex").attr("value","");
	      	   $("#searchEmployer").attr("value","");
	      	   $("#searchPosition").attr("value","");
	      	   $("#searchField").attr("value","");
	      	   $("#searchBrief").text("");
			$.ajax({
				type : 'post',
				url : '${pageContext.request.contextPath }/lecture/getTalentDictionaryVo.do',
				data : {"tid":tid},
				success : function(a) {
	               if(a==null || a==""){
	            	 
	            	   document.getElementById('search').style.display = "none";
	       			   alert("没有该大咖,请重新输入 !");
	               }else{
	               document.getElementById('search').style.display = "block"; 
	            	  /*  $("#search").show(); */
	            	   $("#searchTid").attr("value",a.tid);
	            	   $("#searchName").attr("value",a.name);
	            	   $("#searchSex").attr("value",a.dicname);
	            	   $("#searchEmployer").attr("value",a.employer);
	            	   $("#searchPosition").attr("value",a.position);
	            	   $("#searchField").attr("value",a.field);
	            	   $("#searchBrief").text(a.brief);   
	            	   $("#name_img").attr("src",a.logo);
				}
				}
			})
		}
	  }

	}  
//绑定大咖事件
function binding_bigshot(tid){
	/* <input type="text" name="pattribute" value="公开" readonly="readonly" /> */
	alert("已成功绑定大咖"+tid);
	//dakaID
	$('#dakaID').attr('readonly','readonly');
	$('#dakaID').attr('value',tid);
	 document.getElementById('search').style.display = "none";
}
//取消绑定大咖  
function cancel_binding(){
	var readonly=$('#dakaID').attr('readonly')
	if(readonly==null ||readonly==""){
	alert("当前没有绑定大咖 !");
	}else{
		$('#dakaID').attr('placeholder','请输入大咖ID..');
		$("#dakaID").val("");

		$('#dakaID').removeAttr('readonly')
		alert("取消绑定成功 !");
		
			
	}
	
	 document.getElementById('search').style.display = "none";
}	
//ajax 异步提交图片 到图片服务器
 function submitImgSize1Upload(){
	var option={
			type:'post',
			url:'${pageContext.request.contextPath}/lecture/uploadPic.do',
			dataType:'text',
			data:{
				fileName:'file0'
			},
			success:function(data){
				//data是字符串json格式数据
				var jsonObj = $.parseJSON(data);
				//图片回显。把绝对路径设计给img
				$("#img0").attr("src",jsonObj.fullPath);
				//相对路径保存数据库
				$("#imgSize1").val(jsonObj.relativePath);
			}
	}
	//提交表单
	$("#Factory").ajaxSubmit(option);
} 




//点击保存  /提交  按钮  return CheckLecture(this.form)
function CheckLecture(){
           
  		var option={
  		 cache: true,
           type: "POST",
           url: "${pageContext.request.contextPath }/lecture/inserLecture.do",
           data:{"lectrue":[{'':'',"":"",'':'',"":"",
        	           '':'',"":"",'':'',"":"",
        	           '':'',"":"",'':'',"":"",
        	           '':'',"":"",'':'',"":""
                 }],"lectrue":[{'':'',"":"",'':'',"":"",
      	           '':'',"":"",'':'',"":"",
    	           '':'',"":"",'':'',"":"",
    	           '':'',"":"",'':'',"":""
             }]
           },
           success: function(data) {
	          	 if(data.success){
	           		window.location.href="../redirect/product_productlist.do";
	             }else{
	           		alert(data.msg);
	           	}
             }
     		};
  	 $("#Factory").ajaxSubmit(option);
}
</script>		
</head>
<body>
<!-- 头部 -->
		<div class="navbar" id="navbar">
	<div class="navbar-inner">
		<div class="container-fluid">
			<a href="<%=basePath %>redirect/index.do" class="brand">
				<small class="logo">中国领先的高端商务在线语音分享社区</small>
			</a><!--/.brand-->

			<%@include file="top.jsp"%>
		</div><!--/.container-fluid-->
	</div><!--/.navbar-inner-->
</div>
<!-- /头部 -->
		<div class="main-container container-fluid">
			<a class="menu-toggler" id="menu-toggler" href="#">
				<span class="menu-text"></span>
			</a>
			<!-- 左侧菜单 -->
			
		<div class="sidebar" id="sidebar">
	<%@include file="left.jsp"%>
<div class="sidebar-collapse" id="sidebar-collapse">
	<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
</div>
<script type="text/javascript">
	try{ace.settings.check('sidebar','collapsed')}catch(e){}
</script>
</div>

			<!-- /左侧菜单 -->
			<div class="main-content">
				<!-- 面包屑导航 -->
				<div class="breadcrumbs" id="breadcrumbs">
					<ul class="breadcrumb">
						<li>
							<i class="icon-home home-icon"></i>
					<a href="<%=basePath %>redirect/index.do">首页</a>
							<span class="divider">
							<i class="icon-angle-right arrow-icon"></i>
							</span>
						</li>
						<li class="active">我的讲座>创建讲座</li>

					</ul>
				</div>
				<!-- /面包屑导航 -->
				<div class="page-content">
				<div class="row-fluid">
				<form id="Factory" name="lecture_createlecture" method="post" onSubmit="return false;">
                	
			<div class="table-header" style="padding-left: 35px;">创建讲座 </div>
				<div class="row" style="width:900px;margin-left:35px;margin-top:20px;position:relative;">
					<div class="col-xs-12">
						<div class="form-group">
							<div class="channel_editor">
							<input type="hidden" id="lid"name="lid" value="${lecture.lid}"/>
							<input type="hidden"  id="mid"name="mid" value="${member.mid }"/> 
								<font class="LabelTitle create_lectureTitle">上传封面：</font>
								<img src="${picPath }${Lecture.logo}" id="img0" >
								<input type="file" name="file0" id="file0" multiple="multiple" onchange='submitImgSize1Upload()'/>
							      <input type='hidden' id='logo' name='pic' value='' reg="^.+$" tip="亲！您忘记上传图片了。" />
							</div>
							<script>	
							$("#file0").change(function(){
								var objUrl = getObjectURL(this.files[0]) ;
								console.log("objUrl = "+objUrl) ;
								if (objUrl) {
									$("#img0").attr("src", objUrl) ;
								}
							}) ;
							//建立一個可存取到該file的url
							function getObjectURL(file) {
								var url = null ; 
								if (window.createObjectURL!=undefined) { // basic
									url = window.createObjectURL(file) ;
								} else if (window.URL!=undefined) { // mozilla(firefox)
									url = window.URL.createObjectURL(file) ;
								} else if (window.webkitURL!=undefined) { // webkit or chrome
									url = window.webkitURL.createObjectURL(file) ;
								}
								return url ;
							}
							</script>
							<label class="LabelTitle create_lectureTitle" style="margin-bottom: 10px;">讲座类型：
								<label style="display: inline;margin-right: 20px;"><input type="radio" name="type" value="直播" onclick="live()" checked="checked" />直播</label>
								<label style="display: inline;"><input type="radio" name="type"  value="录播" onclick="recording()"  />录播</label>
							</label>
				<label>
					<font class="LabelTitle create_lectureTitle">讲座名称：</font>
					<input type="text" name="name" required="required" placeholder="请填写讲座名称，最长不超过20个字符..." style="width: 400px;" onblur="if(this.value.length>20){alert('您输入的长度过长，请重新输入！');value='';} "/>
				</label>
<!-- 				<label>
					<font class="LabelTitle create_lectureTitle">讲座主题：</font>
					<input type="text" name="name" required="required" placeholder="请填写讲座主题.."/>
				</label> -->
			</div>

			<div class="form-group mt10">
				<label>
					<span><font  class="LabelTitle create_lectureTitle">讲座标签：</font></span>
					<div class="lecture_label" id="edit_xingge">
						<%-- <c:forEach items="${l }" var="c">
							<label><input id="2001" name="label" type="checkbox" value="投资类" onClick="check_count('xingge', this, 3)">${c }</label>
						</c:forEach> --%>
					</div>	
				</label>		
			</div>
			<div class="form-group mt10">
				<div class="w400">
					<label id="livetime" style="display: block;">
						<font class="LabelTitle create_lectureTitle">直播时间：</font>
                        <input type="text" name="datepicker" id="datetimepicker1" class="form-control" value="2016-3-29"/>
                        <input type="text" name="datepicker" id="datetimepicker2" class="form-control" value="9:00"/>至：
                        <input type="hidden" id="stime"name="stime"/>
                        <input type="text" name="datepicker" id="datetimepicker3" class="form-control" value="2016-5-20"/>
                        <input type="text" name="datepicker" id="datetimepicker4" class="form-control" value="23:00"/>
						<input type="hidden" id="etime" name="etime"/>
						<!-- 时间控件开始 -->
						<script src="<%=basePath %>bigshot/js/time/time_selectUi.js"></script>
						<script src="<%=basePath %>bigshot/js/time/time_lq.datetimepick.js"></script>
											
						
						<script type="text/javascript">
						$(function (){
							$("#datetimepicker1").on("click",function(e){
								e.stopPropagation();
								$(this).lqdatetimepicker({
									css : 'datetime-day',
									dateType : 'D',
									selectback : function(){

									}
								});
							});
							$("#datetimepicker2").on("click",function(e){
								e.stopPropagation();
								$(this).lqdatetimepicker({
									css : 'datetime-hour'
								});

							});
							$("#datetimepicker3").on("click",function(e){
								e.stopPropagation();
								$(this).lqdatetimepicker({
									css : 'datetime-day',
									dateType : 'D',
									selectback : function(){

									}
								});

							});
							$("#datetimepicker4").on("click",function(e){
								e.stopPropagation();
								$(this).lqdatetimepicker({
									css : 'datetime-hour'
								});

							});	
						});
						</script>
						<!-- 时间控件结束 -->
					</label>
				
				</div>
			</div>
			<div class="form-group mt10">
				<div>
					<label class="LabelTitle create_lectureTitle">讲座大纲：
						<textarea class="autosize-transition form-control" id="detail" name="outline" required="required" rows="10" style="vertical-align:top;margin-left: -2px;width: 400px;"></textarea>
					</label>
					
				</div>
			</div>
			<div class="form-group mt10">
				<div class="w400">
					<label class="LabelTitle create_lectureTitle" id="recordingvoice" style="display:none">录播语音：
						<input name="voicerecording" type="file" value="上传录播语音文件" />
					</label>
					<label class="LabelTitle create_lectureTitle">讲义上传：
						<input name="handout" type="file" value="讲义上传" />
					</label>
					<label class="LabelTitle create_lectureTitle">
						<font class="LabelTitle create_lectureTitle">绑定大咖：</font>

						<input type="text" name="tid" id="dakaID" required="required" placeholder="请输入大咖ID.."/>
							
						<input type="button" class="btn_searchbig" value="搜索大咖" onclick="search($('#dakaID').val())" />
						<input type="button" class="btn_searchbig" value="取消绑定" onclick="cancel_binding()" />

						<div class="search" id="search" style="display: none;">
							<div class="form-group lecture_editor" style="margin-left: 70px;">
<<<<<<< .mine
								<img id ="name_img" src="">
=======
								<img src="<%=basePath %>bigshot/images/avatar5.png"/>
>>>>>>> .r203
								<label>
									<font class="LabelTitle create_lectureTitle"><span style="letter-spacing: 6px;">大咖ID</span>：</font>
									<input id="searchTid" type="text" name="name_tid" readonly="readonly" />
								</label>
								<label>
									<font class="LabelTitle create_lectureTitle">大咖姓名：</font>
									<input id="searchName" type="text" name="name_name" readonly="readonly" />
								</label>
								<label>
									<font class="LabelTitle create_lectureTitle">大咖性别：</font>
									<input id="searchSex" type="text" name="name_sex"  readonly="readonly" />
								</label>
								<label>
									<font class="LabelTitle create_lectureTitle">工作单位：</font>
									<input id="searchEmployer" type="text" name="name_employer" readonly="readonly" />
								</label>
								<label>
									<font class="LabelTitle create_lectureTitle">当前职务：</font>
									<input id="searchPosition" type="text" name="name_position" value="CEO" readonly="readonly" />
								</label>
								<label>
									<font class="LabelTitle create_lectureTitle">擅长领域：</font>
									<input id="searchField" type="text" name="name_field" readonly="readonly" />
								</label>
								<label>
									<font class="LabelTitle create_lectureTitle">大咖简介：</font>
									<textarea id="searchBrief" rows="3" readonly="readonly"></textarea>
								</label>
								<input type="button" class="btn_searchbig" value="绑定大咖" onclick="binding_bigshot($('#dakaID').val())" />
								<input type="button" class="btn_searchbig" value="重新输入" onclick="searchsecond()" />
							</div>
						</div>						
					</label>
					<!-- <p style="margin-top: 15px;margin-bottom: 15px;">如果讲座绑定大咖为当前用户，且尚不是大咖用户，请点击<a href="information_bigshot.html">【大咖信息】</a>去完善大咖信息</p> -->
					<p style="margin-top: 15px;margin-bottom: 15px;">如果该大咖用户尚未完成大咖用户信息，请点击<a onclick="areyou()">【完善大咖信息】</a></p>
					<!-- <p style="margin-top: 15px;margin-bottom: 15px;">如果讲座绑定大咖为其他用户，且尚不是大咖用户，请预填写<a onclick="other_bigshot()">【以下信息】</a>等待系统审核</p> -->
						<div id="other_bigshot" style="display: none	;">
							<div class="form-group lecture_editor" style="margin-left: 70px;">
								<div class="form-group bigshot_message">
										<div class="channel_editor">
											<font class="LabelTitle">上传头像：</font>
											<img src="" id="img1" style="margin-left: -170px;">
											<input type="file" name="logo" id="file1" multiple="multiple" style="float:right;margin-right: 380px;" />
										</div>
										<script>	
										$("#file1").change(function(){
											var objUrl = getObjectURL(this.files[0]) ;
											console.log("objUrl = "+objUrl) ;
											if (objUrl) {
												$("#img1").attr("src", objUrl) ;
											}
										}) ;
										//建立一個可存取到該file的url
										function getObjectURL(file) {
											var url = null ; 
											if (window.createObjectURL!=undefined) { // basic
												url = window.createObjectURL(file) ;
											} else if (window.URL!=undefined) { // mozilla(firefox)
												url = window.URL.createObjectURL(file) ;
											} else if (window.webkitURL!=undefined) { // webkit or chrome
												url = window.webkitURL.createObjectURL(file) ;
											}
											return url ;
										}
										</script>
										<label>
											<font class="LabelTitle">大咖姓名：</font>
											<input type="text" name="name" required="required" placeholder="请填写大咖姓名.."/>
										</label>
										<label>
											<font class="LabelTitle">大咖性别：</font>
											<label style="display: inline-block;margin-right: 20px;"><input type="radio" name="sex" value="male">男</label>
											<label style="display: inline-block;"><input type="radio" name="sex" value="female">女</label>
										</label>
										<label>
											<font class="LabelTitle">工作单位：</font>
											<input type="text" name="name" required="required" placeholder="请填写大咖工作单位.."/>
										</label>
										<label>
											<font class="LabelTitle">当前职务：</font>
											<input type="text" name="name" required="required" placeholder="请填写大咖当前职务.."/>
										</label>
										<label>
											<span><font class="LabelTitle">擅长领域：</font>
												<div class="goodat_field" id="edit_xingge1">
												
							<label><input id="2001" name="label" type="checkbox" value="金融" onClick="check_count('xingge', this, 3)">${c }</label>
						  
												</div>
												
											</span>
										</label>
										<label class="LabelTitle">大咖简介：<textarea class="autosize-transition form-control" id="detail" name="detail" required="required" rows="10" style="margin-left: 4px;vertical-align: top;width: 400px;" ></textarea></label>
											
									</div>
							</div>
						</div>
					<script >
							function searchchannel(){
								var bl=document.getElementById("searchchannel").style.display;
								console.log(bl);
								if(bl=='none'){document.getElementById("searchchannel").style.display="block";}
								else document.getElementById("searchchannel").style.display="none";
							}
						</script>
						<div class="searchchannel" id="searchchannel" style="display: none;">
							<label class="LabelTitle create_lectureTitle">
								<font class="LabelTitle create_lectureTitle"><span style="letter-spacing: 6px;">频道ID</span>：</font>
								<input type="text" name="cid" required="required" readonly="readonly" value="" /><br/>
								<span>
									<font class="LabelTitle create_lectureTitle">频道标签：</font>
									<select name="label"  readonly="readonly">
										<option value="0001" readonly="readonly">证券公司</option>
										<option value="0002" readonly="readonly">四大会计师事务所</option>
										<option value="0003" readonly="readonly">咨询公司</option>
										<option value="0004" readonly="readonly">商业银行</option>
										<option value="0005" readonly="readonly">民间组织</option>
									</select>
								</span><br/>
								<font class="LabelTitle create_lectureTitle">频道属性：</font>
									<select name="type" readonly="readonly">
										<option value="1202" readonly="readonly">个人</option>
										<option value="1201" readonly="readonly">机构</option>
									</select>
								
								<label class="LabelTitle create_lectureTitle">频道描述：<textarea readonly="readonly" name="description" style="margin-left: 5px;">频道描述频道描述频道描述频道描述频道描述频道描述</textarea></label>
								
							</label>
						</div>
					

					<script type="text/javascript">
						
					</script>
					<label  name="pattribute"class="LabelTitle create_lectureTitle">产品属性：
							<select name="pattribute" onchange="change_productjurisdiction(this.value)" >
							<option value="3001">公开</option>
							<option value="3002">收费</option>
							<option value="3003">授权</option>
						</select>
					</label>
					<label class="LabelTitle create_lectureTitle" id="jurisdiction_open" style="display: block;">产品类别：
						<input type="text" name="pattributes" value="公开" readonly="readonly" />
					</label>
					<label class="LabelTitle create_lectureTitle" id="jurisdiction_unopen" style="display: none;">产品类别：
						<div class="lecture_label2">
							<label style="margin-right: 30px;"><input type="checkbox" name="ptype" value="4001" checked="" disabled="true">单个产品</label>
							<label><input type="checkbox" name="ptype" value="4002">打包产品</label>
							<label style="margin-right: 30px;"><input type="checkbox" name="ptype" value="4003">计时产品</label>
							<label><input type="checkbox" name="ptype" value="4004">计次产品</label>
						</div>
					</label>
					<!-- <label class="LabelTitle create_lectureTitle">产品属性：
						<label style="display: inline-block;margin-right: 5px;"><input type="radio" name="product_attributes" value="公开">公开</label>
						<label style="display: inline-block;"><input type="radio" name="product_attributes" value="收费">收费</label>
					</label> -->
					<label class="LabelTitle create_lectureTitle radio1">产品状态：
						<label style="display: inline;margin-right: 5px;"><input type="radio" name="pstatus" value="8001" checked="" />开放</label>
						<label style="display: inline;margin-right: 5px;"><input type="radio" name="pstatus" value="8002"  />停售</label>
						<label style="display: inline;"><input type="radio" name="pstatus" value="8003 "  />关闭</label>
					</label>
					<label class="LabelTitle create_lectureTitle" id="duration_listening" style="display: none;">
						<font class="LabelTitle create_lectureTitle">收听期限：</font>
						<select name="sdate" id="sdate" style="width: 55px;">
							<option value="7001">1</option>
							<option value="7002">2</option>
							<option value="7003">3</option>
							<option value="7004">4</option>
							<option value="7005">5</option>
							<option value="7006">6</option>
							<option value="7007">7</option>
							<option value="7008">8</option>
							<option value="7009">9</option>
							<option value="7010">10</option>
							<option value="7011">11</option>
							<option value="7012">12</option>
						</select>
						<font class="LabelTitle">个月<span style="font-size: 10px;color:#b4b9ba ">(购买该产品的用户有权在该期限内无限制收听该讲座)</span></font>
					
					</label>
						<label class="LabelTitle create_lectureTitle">
						<font class="LabelTitle create_lectureTitle">售卖价格：</font>
						<input type="text" name="price" id="singlesale" value="0"  required="required" placeholder="最多输入六位数.." readonly="" style="width: 110px;text-align: right;" onblur=" if(isNaN(this.value)){alert('请输入正确的价格！');value=''} if(this.value.length>6){alert('售卖价格最大输入六位数，请重新输入');value=''}" />元
					</label>

					<%-- <label id="label_add_admin" class="LabelTitle create_lectureTitle">
						<font class="LabelTitle create_lectureTitle LabelTitlenone"><span style="margin-left: -2px;">管理员设置</span>：</font>
						<input type="text" name="admin" required="required" id="adminID" placeholder="请输入需要设置为管理员的ID.."/>
						<input type="button" class="btn_searchbig" id="add_admin" value="添加"  />
						<div id="admin_list">
					
						</div>
						<script type="text/javascript">
							var arr = [];
							var index = 0;
							var val;
							$('#add_admin').click(aaa);
							function aaa(){
							
							$.ajax({
								url:'<%=basePath%>lecture/getMemberIs.do?ids='+$('#adminID').val(),
								data:'json',
								success:function(data){
									if(data.success){
										var p = document.createElement('p');
										var span = document.createElement('span');
										var value = $('#label_add_admin input').val();
										if(value=="") alert("管理员ID不能为空！");
										if(value==val) alert("已添加该用户为管理员，请勿重复添加！");
										if(value!=""&& value!=val){
											document.getElementById("adminID").value='';
											++index;
											span.innerHTML ="<img src='<%=basePath %>bigshot/images/delete.png'>管理员"+index+":" + value;
											
											p.appendChild(span);
											p.onclick = function () {
											$(this).remove();
											}
											var lable = document.getElementById('admin_list');
											lable.appendChild(p);
											arr.push(p);
											val = value;
										}
									}else{
										alert(data.msg);
									}
									
								}
							});
								
							}
						</script>
					</label>
					
				</div>--%>
				
			</div> 
			<input type="button" style="margin-top:10px;margin-left: 10px;" onclick="CheckLecture()" class="btn btn-lg btn-reset btn-radius"  value="保存" />
			<input type="submit" style="margin-top:10px;margin-left: 20px;" onclick="CheckLecture()" class="btn btn-lg btn-success btn-radius" value="提交  " />
			<input type="reset" style="margin-top:10px;margin-left: 20px;" onclick="reset_lecture()" class="btn btn-lg btn-reset btn-radius" value="重置" />
		</div>
	</div>
	</form>
	<!-- 分页 -->
</div>	

				</div><!--/.page-content-->
 
				<!-- 右侧悬浮的设置按钮,去掉好像会引起js报错 -->
				<div class="ace-settings-container hide" id="ace-settings-container">
					<div class="btn btn-app btn-mini btn-warning ace-settings-btn" id="ace-settings-btn">
						<i class="icon-cog bigger-150"></i>
					</div>

					<div class="ace-settings-box" id="ace-settings-box">
						<div>
							<div class="pull-left">
								<select id="skin-colorpicker" class="hide">
									<option data-skin="default" value="#438EB9">#438EB9</option>
									<option data-skin="skin-1" value="#222A2D">#222A2D</option>
									<option data-skin="skin-2" value="#C6487E">#C6487E</option>
									<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
								</select>
							</div>
							<span>&nbsp; Choose Skin</span>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-navbar" />
							<label class="lbl" for="ace-settings-navbar"> Fixed Navbar</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
							<label class="lbl" for="ace-settings-sidebar"> Fixed Sidebar</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs" />
							<label class="lbl" for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
							<label class="lbl" for="ace-settings-rtl"> Right To Left (rtl)</label>
						</div>
					</div>
				</div>
				<!-- /右侧悬浮的设置按钮,去掉好像会引起js报错 -->
			</div>
		</div>


<!-- 回到顶部 -->
<a href="###" id="btn-scroll-up" class="btn-scroll-up btn btn-small btn-inverse">
	<i class="icon-double-angle-up icon-only bigger-110"></i>
</a>
<!-- /回到顶部 -->

<!-- 操作后提示框 -->
<div id="lg-alert" class="hide" style="margin-bottom:-1.5em;"></div>

<!--modal表单弹出框-->
<form id="lg-form" class="modal fade hide form-horizontal" method="post" tabindex="-1" enctype="multipart/form-data" onSubmit="return false;"></form>

<!-- 模态框(Modal) -->
<div class="modal fade" id="Modal" tabindex="-1" role="dialog" aria-labelledby="ModalLabel" aria-hidden="true">
	
</div><!-- /.modal -->
		
<!-- 基础js部分 -->

<script src='<%=basePath %>bigshot/js/jquery.mobile.custom.min.js'></script>

<script src="<%=basePath %>bigshot/js/jquery-ui-1.10.3.full.min.js"></script>
<script src="<%=basePath %>bigshot/js/jquery.ui.touch-punch.min.js"></script>
<script src="<%=basePath %>bigshot/js/bootstrap.min.js"></script>
<script src="<%=basePath %>bigshot/js/ace-elements.min.js"></script>
<script src="<%=basePath %>bigshot/js/ace.min.js"></script>

<script src="<%=basePath %>bigshot/js/jquery.dataTables.min.js"></script>
<script src="<%=basePath %>bigshot/js/jquery.dataTables.bootstrap.js"></script>
<script src="<%=basePath %>bigshot/js/jquery.inputlimiter.1.3.1.min.js"></script>

<!-- ueditor -->
<script type="text/javascript" src="<%=basePath %>bigshot/js/ueditor.config.js"></script>
<script type="text/javascript" src="<%=basePath %>bigshot/js/ueditor.all.js"></script>

<!-- webuploader -->
<script type="text/javascript" src="<%=basePath %>bigshot/js/webuploader.js"></script>

<!-- lagoualert -->
<script src="<%=basePath %>bigshot/js/lagou/lagou.global.js"></script>

<!-- common.lib库 -->
<script src="<%=basePath %>bigshot/js/conmon/common.lib.js"></script>

<!-- /基础js部分 -->
<script>
   $(function (){$('#myModal').modal({
      keyboard: true
   })});
</script>
<script type="text/javascript">
jQuery(function($){
	try{
		ace.settings.navbar_fixed(true);
		ace.settings.sidebar_fixed(true);
		ace.settings.breadcrumbs_fixed(true);
	}
	catch(e){}
	$('[data-rel=tooltip]').tooltip();
	$('[data-rel=popover]').popover({html:true});
});	
</script>


<script src="<%=basePath %>bigshot/js/jquery.easy-pie-chart.min.js"></script>
<script src="<%=basePath %>bigshot/js/jquery.slimscroll.min.js"></script>
<script src="<%=basePath %>bigshot/js/jquery.sparkline.min.js"></script>
<script src="<%=basePath %>bigshot/js/flot/jquery.flot.min.js"></script>
<script src="<%=basePath %>bigshot/js/flot/jquery.flot.pie.min.js"></script>
<script src="<%=basePath %>bigshot/js/flot/jquery.flot.resize.min.js"></script>


</body>
</html>